home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
TOOLPAS2
/
ADIRS.PAS
next >
Wrap
Pascal/Delphi Source File
|
1990-01-10
|
511b
|
31 lines
(*
* adirs - find all directories in a subdirectory tree
*
* Author: S.H.Smith, 5-Apr-86 (16-sep-87)
*
*)
uses DOS;
procedure getfiles(dir: dirstr);
var
DirInfo: SearchRec;
begin
writeln(dir);
FindFirst(dir+'\*.*',Anyfile,DirInfo);
while (DosError = 0) do
begin
if ((DirInfo.Attr and Directory) <> 0) and (DirInfo.name[1] <> '.') then
getfiles(dir+'\'+DirInfo.Name);
FindNext(DirInfo);
end;
end;
begin
getfiles('');
end.